package com.itheima.commit;

/**
 * 工具类
 */
public class MyThreadLocal {
    public static ThreadLocal<Long> threadLocal = new ThreadLocal<>();

    public static void setThreadLocal(Long id){
        threadLocal.set(id);
    }
    public static Long getThreadLocal(){
        return threadLocal.get();
    }
    public static void remove(){
        threadLocal.remove();
    }
}
